/**
 * Generali Solutions d'assurances - Tous droits réservés &copy; 2007 - 2010
 */
package fr.generali.accueilclient.commun.request;

/**
 * @author Holmes Kelly
 * @param <S> object to request
 */
public class Request<S> {

    /**
     * value
     */
    private boolean value;

    /**
     * Enumeration de conditions
     */
    private S objectToRequest;

    /**
     * @param value value
     * @param objectRequest object to request
     */
    public Request(boolean value, S objectRequest) {
        this.value = value;
        this.objectToRequest = objectRequest;
    }

    /**
     * @param objectToRequest object to request
     */
    public Request(S objectToRequest) {
        this.objectToRequest = objectToRequest;
    }

    /**
     * @return the value
     */
    public boolean isValue() {
        return value;
    }

    /**
     * @param value the value to set
     */
    public void setValue(boolean value) {
        this.value = value;
    }

    /**
     * @return the object to request
     */
    public S getObjectToRequest() {
        return objectToRequest;
    }

    /**
     * @param objectRequest the objectRequest to set
     */
    public void setObjectToRequest(S objectRequest) {
        this.objectToRequest = objectRequest;
    }

}
